package com.antdesignbackend.backend.mapper;

import com.antdesignbackend.backend.entity.CertificationInformation;
import com.antdesignbackend.backend.entity.entityVo.CertificationInformationVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CertificationInformationMapper extends BaseMapper<CertificationInformation> {
    int count(@Param(Constants.WRAPPER) QueryWrapper<CertificationInformation> certificationInformationQueryWrapper);
    List<CertificationInformationVo> search(@Param(Constants.WRAPPER) QueryWrapper<CertificationInformation> certificationInformationQueryWrapper);
    Boolean attestationTrue(@Param(Constants.WRAPPER) UpdateWrapper<CertificationInformation> certificationInformationUpdateWrapper);
    Boolean attestationFalse(@Param(Constants.WRAPPER) UpdateWrapper<CertificationInformation> certificationInformationUpdateWrapper);
}
